import request from "@/utils/request";

//获取机场信息列表
export function getAirPorts_api() {
  return request.get({
    url: "/api/mp/getAirPorts",
  });
}
//获取机场详情
export function getAirPortDetail_api(id) {
  return request.get({
    url: "/api/mp/getAirPortDetail",
    data: {
      id,
    },
  });
}
//获取机场信息列表
export function getSalePlanes_api() {
  return request.get({
    url: "/api/mp/getSalePlanes",
  });
}
//获取在售飞机详情
export function getPlaneDetail_api(id) {
  return request.get({
    url: "/api/mp/getPlaneDetail",
    data: {
      id,
    },
  });
}
//提交售卖飞机询价单
export function saveSaleQuote_api(data) {
  return request.post({
    url: "/api/user/saveSaleQuote",
    data,
  });
}

//获取特惠包机列表
export function getCharters_api() {
  return request.get({
    url: "/api/mp/getCharters",
  });
}

//获取特惠包机飞机详情
export function getCharterDetail_api(id) {
  return request.get({
    url: "/api/mp/getCharterDetail",
    data: {
      id,
    },
  });
}

//提交特惠包机飞机询价单
export function saveCharterQuote_api(data) {
  return request.post({
    url: "/api/user/saveCharterQuote",
    data,
  });
}

//获取拼机列表
export function getJoins_api() {
  return request.get({
    url: "/api/mp/getJoins",
  });
}

//提交拼机询价单
export function saveJoinQuote_api(data) {
  return request.post({
    url: "/api/user/saveJoinQuote",
    data,
  });
}

//提交定制
export function saveCustomQuote_api(data) {
  return request.post({
    url: "/api/user/saveCustomQuote",
    data,
  });
}

//获取定制列表
export function getCustoms_api() {
  return request.get({
    url: "/api/user/getCustoms",
  });
}

//取消定制
export function cancelCustom_api(id) {
  return request.get({
    url: "/api/user/cancelCustom",
    data: {
      id,
    },
  });
}

//获取定制详情
export function getCustomDetail_api(id) {
  return request.get({
    url: "/api/user/getCustomDetail",
    data: {
      id,
    },
  });
}

//获取分享图
export function shareCharter_api(id) {
  return request.get({
    url: "/api/mp/shareCharter",
    data: {
      id,
    },
  });
}

//获取国内城市
export function getInCity_api() {
  return request.get({
    url: "/api/mp/getInCity",
  });
}
//获取国内城市
export function getOutCity_api() {
  return request.get({
    url: "/api/mp/getOutCity",
  });
}
//获取国内城市
export function searchAirport_api(k) {
  return request.get({
    url: "/api/mp/searchAirport",
    data: {
      k,
    },
  });
}
